import React, { Component } from 'react';
import { NavLink,Link,withRouter } from 'react-router-dom'
import "./Header.css"


interface Props {
    history:any,
    location:any,
    match:any
}
class Header extends Component<Props> {
    render() {
        var token = localStorage.getItem("token")
        return (
            <div className='header'>
                <span>安庆</span>
                <input type="text" placeholder='搜索商品'/>
                <Link className='word' to={token==null?"/login":"/index/minecenter"}><span>我的</span></Link>
            </div>
        );
    }
}

export default withRouter(Header);